From f5d7e54d33ce72ba1cdcb2d4cd75ef61e946504a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 20 Jun 2014 18:34:06 -0400 Subject: [PATCH] GtkCellRendererPixbuf: Set force_scale_pixbuf The recent icon theme scaling changes make the code more sensitive to mis-sized icons (e.g. application icons in the app chooser). A single row whose size gets blown out of proportion by a big icon is never wanted in a list. We can avoid this situation by telling GtkIconHelper to force-scale the pixbuf to the requested size. --- gtk/gtkcellrendererpixbuf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/gtkcellrendererpixbuf.c b/gtk/gtkcellrendererpixbuf.c index 2271457d7f..15e4a0d6e5 100644 --- a/gtk/gtkcellrendererpixbuf.c +++ b/gtk/gtkcellrendererpixbuf.c @@ -109,6 +109,7 @@ gtk_cell_renderer_pixbuf_init (GtkCellRendererPixbuf *cellpixbuf) priv = cellpixbuf->priv; priv->icon_helper = _gtk_icon_helper_new (); + _gtk_icon_helper_set_force_scale_pixbuf (priv->icon_helper, TRUE); priv->icon_size = GTK_ICON_SIZE_MENU; } -- 2.30.2